package com.juanable.niubility.controller;

import com.juanable.niubility.annotation.Limit;
import com.juanable.niubility.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("")
public class LimitController {

    @Limit(period = 10, count = 10)
    @GetMapping("/")
    public Result<Long> get() {
        return Result.success(System.currentTimeMillis());
    }

}
